package com.example.ying.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * 评论点赞表
 */
@TableName(value = "comment_like")
@Data
public class CommentLiked {

    //主键id
    @TableId(type = IdType.AUTO)
    private Integer id;

    //被点赞的评论的id
    private String likedCommentId;

    //点赞的用户的id
    private String likedUserId;

    //点赞的状态.默认未点赞
    private Integer status = 0;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT)
    private Date updateTime;

    public CommentLiked() {
    }

    public CommentLiked(String likedCommentId, String likedUserId, Integer status) {
        this.likedCommentId = likedCommentId;
        this.likedUserId = likedUserId;
        this.status = status;
    }
}